<?php

namespace App\Controller\My;


use App\Controller\BaseController;
use App\Services\My\VisitorService;
use Hyperf\Context\Context;
use Hyperf\Di\Annotation\Inject;

class VisitorController extends BaseController
{

    #[Inject]
    public VisitorService $visitorService;


    /**
     * Note - 个人中心-最近来访(最近7天)
     * DateTime 2024/8/8 16:15
     * User Admin
     */
    public function list()
    {
        $userInfo = Context::get('user');
        $params = $this->request->post();
        $params['language'] = Context::get('language');
        return $this->return($this->visitorService->list($userInfo, $params));
    }

}